package com.example.eazyfuntion.controller;

import example.feign.clients.BaseClient;
import example.feign.result.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

@RestController
@RequestMapping("/feign")
@Api("feign接口调用")
public class DemoController {
    @Autowired
    private BaseClient baseClient;

    @ApiOperation("base的feign")
    @GetMapping("/api1111")
    public void export(HttpServletResponse response) {
        response.reset();
        baseClient.export(response);
    }

}
